package com.platform.modules.sys.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * 资质证书
 * @author wangLc  
 */
@Data
@TableName("SYS_USER_APTITUDE")
public class SysUserAptitudeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="证书ID",example="")
	@TableId
	private String id;

	@ApiModelProperty(value="人员id",example="")
	private String userId;

	@ApiModelProperty(value="注册资格类型",example="")
	private String registerType;
	
	@ApiModelProperty(value="注册证书名称",example="")
	private String aptitudeName;

	@ApiModelProperty(value="证书编码",example="")
	private String aptitudeNumber;

	@ApiModelProperty(value="批准文号",example="")
	private String authorizeNo;

	@ApiModelProperty(value="发证机关/毕业学校",example="")
	private String aptitudeOrg;

	@ApiModelProperty(value="证书附件",example="")
	private String filePath;

	@ApiModelProperty(value="证书二维码地址",example="")
	private String qrPath;

	@ApiModelProperty(value="创建人",example="")
	private String createUserId;

	@ApiModelProperty(value="证书专业",example="")
	private String aptitudeSpeciality;

	@ApiModelProperty(value="证书审核状态",example="")
	private String aptitudeStatus;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
	@ApiModelProperty(value="发证日期",example="")
	private Date grantTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
	@ApiModelProperty(value="审核日期",example="")
	private Date auditTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
	@ApiModelProperty(value="截止日期",example="")
	private Date expiryTime;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value="创建日期",example="")
	private Date createTime;
	
	//////////////////////////////非数据库字段

	@ApiModelProperty(value="证书审核状态翻译",example="")
	@TableField(exist = false)
	private String aptitudeStatusName;

	@ApiModelProperty(value="人员状态",example="")
	@TableField(exist = false)
	private String status;

	@ApiModelProperty(value="人员身份证号码",example="")
	@TableField(exist = false)
	private String userCard;

	@ApiModelProperty(value="人员职务",example="")
	@TableField(exist = false)
	private String seal;

	@ApiModelProperty(value="人员姓名",example="")
	@TableField(exist = false)
	private String realName;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
	@ApiModelProperty(value="出生日期",example="")
	@TableField(exist = false)
	private Date birthDate;

	@ApiModelProperty(value="用户民族",example="")
	@TableField(exist = false)
	private String nation;

}
